/**
 * 企业用户表 api 封装
 *
 * @Author:    M
 * @Date:      2024-10-18 20:45:10
 * @Copyright  Transmute实验室
 */
import { postRequest, getRequest } from '/@/lib/axios';

export const userApi = {

  /**
   * 分页查询  @author  M
   */
  queryPage : (param) => {
    return postRequest('/user/queryPage', param);
  },

  /**
   * 增加  @author  M
   */
  add: (param) => {
      return postRequest('/user/add', param);
  },

  /**
   * 修改  @author  M
   */
  update: (param) => {
      return postRequest('/user/update', param);
  },

  /** 
   * 重置密码  @author  M 
   */
  resetPassword: (userId) => {
    return postRequest(`/user/resetPassword/${userId}`);
  },

  /**
   * 删除  @author  M
   */
  delete: (userId) => {
      return getRequest(`/user/delete/${userId}`);
  },

  /**
   * 批量删除  @author  M
   */
  batchDelete: (userIdList) => {
      return postRequest('/user/batchDelete', userIdList);
  },

};
